package com.evl.common.persistence.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author weijunlong
 * @since 2017-07-07
 */
public class City extends Model<City> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 城市代码
     */
	@TableField("city_code")
	private String cityCode;
	@TableField("city_name")
	private String cityName;
    /**
     * 拼音全称
     */
	@TableField("all_spell")
	private String allSpell;
    /**
     * 拼音简称
     */
	@TableField("brief_spell")
	private String briefSpell;
    /**
     * 状态（1.有效，0.无效）
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getAllSpell() {
		return allSpell;
	}

	public void setAllSpell(String allSpell) {
		this.allSpell = allSpell;
	}

	public String getBriefSpell() {
		return briefSpell;
	}

	public void setBriefSpell(String briefSpell) {
		this.briefSpell = briefSpell;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
